#选择带环境带镜像
FROM java:8-jre
#指明应用带安装为止
VOLUME /app
ARG JAR_FILE=./target/gs-spring-boot-docker-0.1.0.jar
COPY ${JAR_FILE} /app/app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]